// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import util from './util/util'; // 工具类辅助函数的封装
import axios from 'axios';
import VueLazyload from 'vue-lazyload';
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
Vue.prototype.$axios = axios; // 在vue的原型上挂载 axios 这样可以在全局中使用 axios;

Vue.config.productionTip = false
Vue.use(VueLazyload,{
  loadding: 'http://www.518.fm/bdbData/r/gou/u/loading.png',
  error: 'http://www.518.fm/bdbData/r/gou/u/error.png',
  attempt: 1
})
Vue.use(VueAwesomeSwiper)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
